<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="1"></div>
</body>
<script>
  var arry = document.getElementById("1");
  var a = [1,2,3,4,5,6,7,8,9,10]
  a.sort(function (a,b) {
    var sign = (Math.random()>0.5)? 1:-1;
    return(a-b)*sign;

  }),

    var sum = a.slice(0,10).reduce(function (pre,cur) {
      return pre+cur;
    },0);


  var c= new Array(100);
  c = c.join(",").split(",").map(function (item,index) {
    return index;
  })

  function deReport() {
    let newArr = [];
    arr.map(function (item) {
      if(newArr.indexOf(item)===-1){}
      newArr.push(item)
    });
    return newArr
  }

function copu() {
  let c= {};
  for(let i in p){
  c[i]=p[i]}
  return c
}

function deepcopy(p,c) {
  let d= c || {}
  for(let i in p){
    if (typeof p[i]==='object') {
      d[i]=(p[i].constructor===Array)?[]:{}
      deepcopy(d[i],p[i]);
    }else {
      d[i]=p[i]
    }

  }
  return d
}

</script>
</html>
